import { CommonStatus } from "/@/api/models";

export interface CommunityItem {
  id: number;
  name: string;
  code: string;
  cooperationId: number | null;
  adminRegionId: number | null;
  propCompanyId: number | null;
  cooperationName: string;
  adminRegionName: string;
  propCompanyName: string;
  sort: number;
}

export enum CooperationMode {
  jointly = 0,
  self = 1,
}

export interface FrontWarehouseItem {
  id: number;
  name: string;
  code: string;
  sort: number;
  communityIds: string | null;
  communityIdArr: number[] | null;
  communityName: string;
  cooperationMode: CooperationMode;
  dividendRatio: number | null;
  freight: number | null;
}

export interface DeliveryPersonItem {
  id: number;
  name: string;
  sex: 1 | 2;
  idCard: string;
  phone: string;
  phoneIdCode: string;
  email: string;
  source: string;
  domicile: string;
  registerAddress: string;
  deposit: number;
  status: CommonStatus;
}
